import { forwardRef, Module } from '@nestjs/common';
import { MatchService } from './matches.service';
import { MatchController } from './matches.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Match } from './matches.entity';
import { Like } from './likes.entity';
import { Visitor } from './visitors.entity';
import { UsersModule } from '../users/users.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Match, Like, Visitor]),
    forwardRef(() => UsersModule),
  ],
  providers: [MatchService],
  controllers: [MatchController],
  exports: [MatchService],
})
export class MatchesModule {}
